from django.contrib import admin
from .models import Post, Category, Tag

# Register your models here.
# 对应应用后台管理配置文件


# 定制 Admin 后台 Post列表显示字段
class PostAdmin(admin.ModelAdmin):
    list_display = [
        'title', 'created_time', 'modified_time', 'category', 'author'
    ]


admin.site.register(Post, PostAdmin)
admin.site.register(Category)
admin.site.register(Tag)